﻿@using Vit.Web.Models;
@inherits System.Web.Mvc.WebViewPage
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=@ViewBag.CharSet" />
    <meta http-equiv="Content-Language" content="@ViewBag.CultureInfo" />
    <title>@ViewBag.Title</title>
    <meta name="keywords" content="@ViewBag.MetaKeywords" />
    <meta name="description" content="@ViewBag.MetaDescription" />
    <link rel="shortcut icon" href="@ViewBag.FavIcon" />
    <link rel="icon" href="@ViewBag.FavIcon" type="image/x-icon" />
    <link rel="stylesheet" href="@Theme.Style("jquery/jquery-ui-1.8.6.css")" type="text/css" />
    @RenderSection("styles", false)
    <script src='/Scripts/jquery-1.4.4.min.js' type="text/javascript"></script>
    <script src='/Scripts/jquery-ui.min.js' type="text/javascript"></script>
    <script src='/Scripts/jquery.validate.min.js' type="text/javascript"></script>
    <script src='/Scripts/jquery.unobtrusive-ajax.min.js' type="text/javascript"></script>
    <script src='/Scripts/jquery.validate.unobtrusive.min.js' type="text/javascript"></script>
    <script src='/Scripts/jquery.validate.unobtrusive.ext.js' type="text/javascript"></script>
    <script src='/Scripts/jquery.query.js' type="text/javascript"></script>
    <script src='/Scripts/jquery.cookie.js' type="text/javascript"></script>
    <script src='/Scripts/jquery.hotkeys.js' type="text/javascript"></script>
    <script src='/Scripts/jquery.jstree.js' type="text/javascript"></script>
    <script src='/Scripts/localization.js' type="text/javascript"></script>
    <script src='/Scripts/global.js' type="text/javascript"></script>
    @RenderSection("scripts", false)
    <script type="text/javascript">
        var message = '@Html.Raw(ViewBag.Message ?? "")';
        $(function () {
            if (message.length > 0)
                Alert(Local('Vit.Web', 'Information'), message);
        });
    </script>
</head>
<body>
    <div class="layout page">
        @if (IsSectionDefined("top"))
        {
            @RenderSection("top", false)
        }
        @if (IsSectionDefined("header"))
        {
            <div class="layout header">
                @RenderSection("header", false)
            </div>
        }
        <div class="layout main">
            @RenderBody()
        </div>
        @if (IsSectionDefined("footer"))
        {
            <div class="layout footer">
                @RenderSection("footer", false)
            </div>
        }
    </div>
</body>
</html>
